package dominion.kingdom;

import dominion.CardTypes;
import dominion.Player;
import dominion.Victory;

public class Garden extends Victory {

	protected Player player;

	public Garden(Player player) {
		super(0, CardTypes.Garden);
		this.player = player;
	}

	@Override
	public int value() {
		int cards = this.player.deck().size();
		cards += this.player.hand().size();
		cards += this.player.grave().size();
		return cards / 10;
	}
}
